const express = require('express');
const router = express.Router();
const db = require('../config/db');
router.post('/', function(req, res) {

    try {
      db.novel_base.findAndCountAll({
        where:{
          status : 1,
        },
        limit: 10,

      }).then(ret=>{
          // console.log('list----',ret)
        return res.json({ret_code: 2, ret_msg: '成功',data:ret});
      })
    }catch (e) {
      console.log(e);
      return res.json({ret_code: 2, ret_msg: '获取数据失败'});
    }
    // res.json({ret_code: 0, ret_msg: '你给老子滚！', data: req.body});
});
module.exports = router;
